Xbasic

INET::SSLContextDecryptString Method

Syntax

Result_Flag as C = DecryptString(ResultString as C, SourceString as C, Key as C | Key as B [, Algorithm as C [, Initializer as B]])

Arguments

ResultStringCharacter

The decoded string.

SourceStringCharacter

The encoded string.

KeyCharacter Binary

A binary value used to decode SourceString.

AlgorithmCharacter

Default = "Blowfish". The encoding algorithm to use. Refer to Encryption Algorithms.

InitializerBinary

An advanced feature requiring knowledge of the specific algorithm, much of which is not clearly documented. Additional information to be provided by advanced users depending on the algorithm they use. Refer to the OpenSSL site at www.openssl.org for more information.

Returns

Result_FlagLogical

Returns .T. if the operation was successful; otherwise .F.

Description

Decrypts a string which has been encrypted and converted to base64 encoding.

Discussion

The INET::SSLContext::DecryptString() method decrypts a base64 string encoded by INET::SSLContext::EncryptString(). The customer is responsible for verifying that they have met all legal requirements when using any algorithms other than the default.

See Also